﻿package net.yogadigital.popit.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Juanda
	 */
	public class PopitEvent extends Event 
	{
		public static const ELEMENT_LOADED:String 		= "element_loaded_popit";
		public static const ELEMENT_CLOSED:String 		= "element_closed_popit";
		public static const ELEMENT_DESTROYED:String 	= "element_destroyed_popit";
		public static const LOADING_PROGRESS:String 	= "loading_progress_popit";
		public static const CLOSE_BUTTON_PRESSED:String = "closed_button_pressed_popit";
		public static const START_DRAG:String = "stop_drag_popit"
		public static const STOP_DRAG:String = "start_drag_popit"
		
		public function PopitEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
		} 
		
		public override function clone():Event 
		{ 
			return new PopitEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("PopitEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}